<template>
  <view class="">
    <view style="padding: 20upx" v-html="lis"></view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      lis: "",
      type: 0,
    };
  },
  onShow() {},
  onLoad(e) {
    if (e.type) {
      this.type = e.type;
      let title = "隐私协议";
      if (e.title != null) {
        title = e.title;
      }
      uni.setNavigationBarTitle({
        title: title,
      });
    }
    this.getLis();
  },
  methods: {
    getLis() {
      let url = "/mobile/index.php?act=document&op=user_doc";
      let params = {};
      if (this.type == 12) {
        url = "/mobile/index.php?act=document&op=index";
        // https://uriwin.com  &did=
        params.did = this.type;
      } else if (this.type) {
        url = "/mobile/index.php?act=document&op=privacy_doc";
      } else {
        url = "/mobile/index.php?act=document&op=user_doc";
      }

      this.$util
        .request({
          url: url,
          method: "get",
          data: params,
        })
        .then((res) => {
          this.lis = res.datas.content;
        });
    },
  },
};
</script>

<style>
</style>
